package com.yn.club.auth.application.request;

import com.yn.club.common.validator.Validators;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * (AuthRole)表新增，保存类
 *
 * @author YN
 * @since 2025-01-22 15:41:49
 */
@Data
public class AuthRoleSaveRequest {

    @NotNull(groups = Validators.EditGroup.class)
    private Long id;
    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空")
    private String roleName;
    /**
     * 角色唯一标识
     */
    @NotBlank(message = "角色key不能为空")
    private String roleKey;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 是否被删除 0未删除 1已删除
     */
    private Integer isDeleted;
}

